<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<div id="content">
	<c:forEach items="${posts.content}" var="post">

		<div class="loop-entry clearfix">
			<h2>
				<a href="${ctx}/admin/post/update/${post.id}" title="${post.postName}">${post.postName}</a>
			</h2>
			<a href="#" title="${post.postName}"
				class="gh-button icon arrowright">continue reading</a>
				
			<a href="${ctx}/admin/post/delete/${post.id}">删除</a>
		</div>

	</c:forEach>
	
	<tags:adminpagination page="${posts}" paginationSize="5" />

</div>